<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<html>
<head>
<title>Spring 3 MVC Series - Contact Manager</title>
</head>
<body>
	<h2 class="TABLE_HEADER">
		<spring:message code="user.registration" />
	</h2>

	<spring:bind path="user" />
	<form:form method="POST" action="" commandName="user">

		<form:errors path="*" cssClass="ERROR_MESSAGE" element="div" />
		<table class="FORM">
			<tr>
				<td><form:hidden id="Id" path="id" /></td>
			</tr>
			<tr>
				<td><form:label path="firstName">
						<spring:message code="name.first" />
					</form:label></td>
				<td><form:input id="firstName" path="firstName" /></td>
			</tr>
			<tr>
				<td><form:label path="lastName">
						<spring:message code="name.last" />
					</form:label></td>
				<td><form:input path="lastName" /></td>
			</tr>
			<tr>
				<td><form:label path="email">
						<spring:message code="email" />
					</form:label></td>
				<td><form:input path="email" /></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit"
					value="<spring:message code="button.create"/>" /></td>
			</tr>
		</table>

	</form:form>
</body>
</html>
